package com.ouc.dataMange.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ouc.dataMange.mapper.SysDataShipPathMapper;
import com.ouc.dataMange.domain.SysDataShipPath;
import com.ouc.dataMange.service.ISysDataShipPathService;

/**
 * shipPathService业务层处理
 *
 * @author ouc
 * @date 2025-08-05
 */
@Service
public class SysDataShipPathServiceImpl implements ISysDataShipPathService {
  @Autowired
  private SysDataShipPathMapper sysDataShipPathMapper;

  /**
   * 查询shipPath
   *
   * @param pathId shipPath主键
   * @return shipPath
   */
  @Override
  public SysDataShipPath selectSysDataShipPathByPathId(Integer pathId) {
    return sysDataShipPathMapper.selectSysDataShipPathByPathId(pathId);
  }

  @Override
  public SysDataShipPath selectNewInsert(SysDataShipPath shipPath) {
    return sysDataShipPathMapper.selectNewInsert(shipPath);
  }

  /**
   * 查询shipPath列表
   *
   * @param sysDataShipPath shipPath
   * @return shipPath
   */
  @Override
  public List<SysDataShipPath> selectSysDataShipPathList(SysDataShipPath sysDataShipPath) {
    return sysDataShipPathMapper.selectSysDataShipPathList(sysDataShipPath);
  }

  /**
   * 新增shipPath
   *
   * @param sysDataShipPath shipPath
   * @return 结果
   */
  @Override
  public int insertSysDataShipPath(SysDataShipPath sysDataShipPath) {
    return sysDataShipPathMapper.insertSysDataShipPath(sysDataShipPath);
  }

  /**
   * 修改shipPath
   *
   * @param sysDataShipPath shipPath
   * @return 结果
   */
  @Override
  public int updateSysDataShipPath(SysDataShipPath sysDataShipPath) {
    return sysDataShipPathMapper.updateSysDataShipPath(sysDataShipPath);
  }

  /**
   * 批量删除shipPath
   *
   * @param pathIds 需要删除的shipPath主键
   * @return 结果
   */
  @Override
  public int deleteSysDataShipPathByPathIds(Integer[] pathIds) {
    return sysDataShipPathMapper.deleteSysDataShipPathByPathIds(pathIds);
  }

  /**
   * 删除shipPath信息
   *
   * @param pathId shipPath主键
   * @return 结果
   */
  @Override
  public int deleteSysDataShipPathByPathId(Integer pathId) {
    return sysDataShipPathMapper.deleteSysDataShipPathByPathId(pathId);
  }
}
